package com.zzxy.springmvc.controller;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.mvc.Controller;

public class UserController implements Controller {

       @Override
        public ModelAndView handleRequest(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
            ModelAndView modelAndView = new ModelAndView("/user/userList");
            modelAndView.addObject("username", "zhangsanfeng");
            return modelAndView;
        }
    }

